package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.TravelComment;
import cn.wolfcode.trip.base.query.QueryObject;

import java.util.List;

public interface TravelCommentMapper {

    /**
     * 1.根据攻略id分页查询其下的所有评论
     *
     * @param qo
     * @return
     */
    List<TravelComment> selectForList(QueryObject qo);

    /**
     * 2.保存一条游记评论
     *
     * @param record
     * @return
     */
    int insert(TravelComment record);

    TravelComment selectByPrimaryKey(Long id);

    int deleteByPrimaryKey(Long id);

    List<TravelComment> selectAll();

    int updateByPrimaryKey(TravelComment record);

    List<TravelComment> selectForAllList(QueryObject qo);

    Integer selectCommentCount(Long uid);

    void changeCommentStatus(Long uid);
}